package com.hnkywl.sts.service.jhgl;

import com.hnkywl.sts.dao.jhgl.TpwzjhmxDao;
import com.hnkywl.sts.dao.jhgl.ZgwzjhmxDao;
import com.hnkywl.sts.entity.jhgl.Tpwzjh;
import com.hnkywl.sts.entity.jhgl.Tpwzjhmx;
import com.hnkywl.sts.entity.jhgl.Zgwzjh;
import com.hnkywl.sts.entity.jhgl.Zgwzjhmx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-6
 * Time: 下午5:14
 * To change this template use File | Settings | File Templates.
 */
@Service
public class WzjhmxService {
    private ZgwzjhmxDao zgwzjhmxDao;
    private TpwzjhmxDao tpwzjhmxDao;

    @Transactional
    private void saveZgwzjhmx(Zgwzjhmx zgwzjhmx) {
        zgwzjhmxDao.save(zgwzjhmx);
    }

    @Transactional
    private void saveTpwzjhmx(Tpwzjhmx tpwzjhmx) {
        tpwzjhmxDao.save(tpwzjhmx);
    }

    @Autowired
    public void setZgwzjhmxDao(ZgwzjhmxDao zgwzjhmxDao) {
        this.zgwzjhmxDao = zgwzjhmxDao;
    }

    @Autowired
    public void setTpwzjhmxDao(TpwzjhmxDao tpwzjhmxDao) {
        this.tpwzjhmxDao = tpwzjhmxDao;
    }
}
